package com.example.myapplication.localdatabase;


import androidx.room.Database;
import androidx.room.RoomDatabase;
import androidx.room.TypeConverters;

import com.example.myapplication.dao.FieldNotebookDao;
import com.example.myapplication.model.FieldNotebookEntity;
import com.example.myapplication.util.Converters;

@Database(entities = {FieldNotebookEntity.class}, version = 2) // 版本号从 1 改为 2
@TypeConverters({Converters.class})
public abstract class AppDatabase extends RoomDatabase {
    public abstract FieldNotebookDao fieldNotebookDao();
}